package com.im.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 会话用户
 *
 * @author yunZhouJiaDi
 */
@Data
@TableName("chat_user")
@Accessors(chain = true)
public class ChatUser {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("联系人id")
    private String contactId;

    @ApiModelProperty("会话id")
    private String chatId;

    @ApiModelProperty("联系人名称")
    private String contactName;

}
